<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<form:form commandName="itemCommand" action="itemInsert.do" enctype="multipart/form-data" method="post">

<table align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#6dfff2" width="750">

	<tr height="25" style="text-align:center">
		<td><a href="itemList.do">상품목록</a></td>
		<td><a href="itemInsert.do">상품등록</a></td>
	</tr>

	<tr>
		<table align="center" border="0" cellpadding="0" cellspacing="1" width="600">
			<tr>
				<td>상품분류</td>
				<td>
					<form:select path="i_category">
						<form:option value="bat">배트</form:option>
						<form:option value="glove">글러브</form:option>
						<form:option value="cloth">옷</form:option>
						<form:option value="shoes">신발</form:option>
						<form:option value="etc.">기타</form:option>
					</form:select>
				</td>
			</tr>
			<tr>
				<td>상품 이름 : </td> 
				<td>
					<form:input path="i_name" value=""/>
					<form:errors path="i_name"/>
				</td>
			</tr>
			<tr>
				<td>상품 단가 : </td>
				<td>
					<form:input path="i_price" value=""/><br/>
					<form:errors path="i_price"/><br/>
				</td>
			</tr>
			<tr>
				<td>상품 수량 :</td>
				<td>
					<form:input path="i_ea" value=""/>
					<form:errors path="i_ea"/>
				</td>
			</tr>
			<tr>
				<td>상품이미지</td>
				<td><input type="file" name="upload"/></td>
			</tr>
			<tr>
				<td>내용작성</td>
				<td><textarea rows="15" cols="80" name="i_content"></textarea>
				
				</td>
			</tr>
			<tr>
				<td colspan="2" style="text-align:center">
					<input type="submit" value="상품등록"/>
					<input type="button" value="등록취소" onclick="location.href='itemList.do'"/>
				</td>
			</tr>
		</table>
	</tr>
	

</table>

</form:form>

